package xyz.linyuxb.script;

import cn.hutool.log.Log;
import cn.hutool.log.LogFactory;
import xyz.linyuxb.utils.QuartzScript;

import java.util.Properties;

/**
 * @Author: linyuxb
 * @Date: 2021/11/12 5:22 下午
 * @Desc: 任务脚本模板1
 */
public class Script1 extends QuartzScript {
    private static final Log log = LogFactory.get();
    private static final String JOB_DESC = "script1";

    /**
     * 在此处实现任务逻辑
     *
     * @param properties
     */
    @Override
    public void doScript(Properties properties) {
        log.info(properties.getProperty("script1.name"));
        log.info("Script1 执行成功");
    }

    @Override
    public String getJokDesc() {
        return JOB_DESC;
    }
}
